package box.tuson.com.tusonbox;

import android.content.*;
import android.net.*;
import android.os.*;
import android.support.v7.app.*;
import android.view.*;
import android.view.View.*;
import android.widget.*;

public class qqqzlt extends AppCompatActivity
{
	//声明变量
	private Button qd;
	private EditText qq;
	private String qqnum;
	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.qqqzlt);
		qd = (Button) findViewById(R.id.qqqzltButton1);
		qq = (EditText) findViewById(R.id.qqqzltEditText1);
		qd.setOnClickListener(new OnClickListener(){

				@Override
				public void onClick(View p1)
				{
					qq.setText(qq.getText().toString());
					qqnum=qq.getText().toString();
					String url="mqqwpa://im/chat?chat_type=wpa&uin="+qqnum;
					startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
					}

			});
		}
	}
